<template>
  <div>
        <div class="search_Hot">
            <div class="SearchContainer">
                <div class="SAll_Title">
                    <span>热门搜索</span>
                </div>
                <div class="SH_Content">
                    <div class="SHC_Box optFor">
                        <span class="iconfont icon-remen"></span>
                        <span>病娇</span>
                    </div>
                    <div class="SHC_Box optFor">
                        <span class="iconfont icon-remen"></span>
                        <span>虐渣</span>
                    </div>
                    <div class="SHC_Box">
                        <span>甜宠</span>
                    </div>
                    <div class="SHC_Box">
                        <span>重生</span>
                    </div>
                    <div class="SHC_Box">
                        <span>快穿</span>
                    </div>
                    <div class="SHC_Box">
                        <span>末世</span>
                    </div>
                    <div class="SHC_Box">
                        <span>穿越</span>
                    </div>
                    <div class="SHC_Box">
                        <span>更多分类<span class="iconfont icon-youjiantou1"></span></span>
                    </div>
                </div>
            </div>
        </div>
        <div class="search_HotBook">
            <div class="SearchContainer">
                <div class="SAll_Title">
                    <span>热搜书籍</span>
                </div>
            </div>
            <div class="searchListBox">
                <div class="searchList">
                    <div class="MRL_ranking">
                        <span>1</span>
                    </div>
                    <div class="MRL_Content">
                        <div class="upperPart">
                            <div class="MRLC_Img">
                                <img src="" alt="">
                            </div>
                            <div class="MRLC_Text">
                                <p class="MRLCT_name">一剑独尊</p>
                                <p class="MRLCT_Tag">杀伐果断·连载·841万字</p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="searchList">
                    <div class="MRL_ranking">
                        <span>1</span>
                    </div>
                    <div class="MRL_Content">
                        <div class="upperPart">
                            <div class="MRLC_Img">
                                <img src="" alt="">
                            </div>
                            <div class="MRLC_Text">
                                <p class="MRLCT_name">一剑独尊</p>
                                <p class="MRLCT_Tag">杀伐果断·连载·841万字</p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="searchList">
                    <div class="MRL_ranking">
                        <span>1</span>
                    </div>
                    <div class="MRL_Content">
                        <div class="upperPart">
                            <div class="MRLC_Img">
                                <img src="" alt="">
                            </div>
                            <div class="MRLC_Text">
                                <p class="MRLCT_name">一剑独尊</p>
                                <p class="MRLCT_Tag">杀伐果断·连载·841万字</p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="searchList">
                    <div class="MRL_ranking">
                        <span>1</span>
                    </div>
                    <div class="MRL_Content">
                        <div class="upperPart">
                            <div class="MRLC_Img">
                                <img src="" alt="">
                            </div>
                            <div class="MRLC_Text">
                                <p class="MRLCT_name">一剑独尊</p>
                                <p class="MRLCT_Tag">杀伐果断·连载·841万字</p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="searchList">
                    <div class="MRL_ranking">
                        <span>1</span>
                    </div>
                    <div class="MRL_Content">
                        <div class="upperPart">
                            <div class="MRLC_Img">
                                <img src="" alt="">
                            </div>
                            <div class="MRLC_Text">
                                <p class="MRLCT_name">一剑独尊</p>
                                <p class="MRLCT_Tag">杀伐果断·连载·841万字</p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="searchList">
                    <div class="MRL_ranking">
                        <span>1</span>
                    </div>
                    <div class="MRL_Content">
                        <div class="upperPart">
                            <div class="MRLC_Img">
                                <img src="" alt="">
                            </div>
                            <div class="MRLC_Text">
                                <p class="MRLCT_name">一剑独尊</p>
                                <p class="MRLCT_Tag">杀伐果断·连载·841万字</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="search_bottom">
            <p class="bigText">免费看书100年</p>
            <p>七猫免费小说</p>
        </div>
  </div>
</template>

<script>
import {getSearchGetHotWords,getSearchSearchHint} from "../../api/search";
export default {
    data(){
        return{
            value:null,
        }
    },
    methods:{
        // 搜索接口
        getSearchSearchHintFun(){
            getSearchSearchHint().then(data=>{
                console.log(data)
            })
        },
        // 热门搜索
        getSearchGetHotWordsFun(){
            getSearchGetHotWords().then(data=>{
                console.log(data)
            })
        }
    },
    created(){
        this.getSearchGetHotWordsFun();
        this.getSearchSearchHintFun();
    }
}
</script>

<style lang="less">
.search_Hot{
    .SH_Content{
        display: flex;
        flex-wrap: wrap;
        .SHC_Box.optFor{
            display: flex;
            align-items: center;
            background-color: #faf1ec;
            padding: 5px 10px;
            border-radius: 20px;
            span.icon-remen{
                color: #fe6643;
                font-size: 18px;
                margin-right: 2px;
            }
            span{
                font-size: 13px;
                color: #fe6643;
            }
        }
        .SHC_Box{
            background-color: #f5f6f8;
            padding: 5px 10px;
            border-radius: 20px;
            margin-right: 10px;
            font-weight: bold;
            margin-bottom: 10px;
            span{
                font-size: 13px;
                color: #333;
            }
        }
    }
}
.search_HotBook{
    .searchListBox{
        .searchList{
            display: flex;
            // align-items: center;
            position: relative;
            .MRL_ranking{
                position: absolute;
                top: -8px;
                left: 20px;
                line-height: 90px;
                width: 10%;
                z-index: 2;
                span{
                    background-color: #fee450;
                    font-weight: bold;
                    padding: 2px 6px;
                    border-radius: 50%;
                }
            }
            .MRL_Content{
                width: 90%;
                padding: 10px 0px;
                padding-left: 50px;
                .upperPart{
                    display: flex;
                    position: relative;
                    margin-bottom: 10px;
                    .MRLC_Img{
                        width: 50px;
                        height: 63px;
                        background-color: pink;
                        margin-right: 10px;
                        img{
                            width: 100%;
                            height: 100%;
                        }
                    }
                    .MRLC_Text{
                        padding-top: 5px;
                        line-height: 23px;
                        .MRLCT_name{
                            font-size: 18px;
                            font-weight: bold;
                        }
                        .MRLCT_Tag{
                            color: #aaa;
                            font-size: 14px;
                        }
                    }
                }
            }
        }
    }
}
.search_bottom{
    background-color: #fff;
    text-align: center;
    color: #eaeaea;
    padding-top: 30px;
    padding-bottom: 50px;
    .bigText{
        font-size: 22px;
        font-weight: bold;
    }
}
</style>